JoinActivitySetting=function (editor) {
	this.editor = editor;
	this.setting = this.getCurrentAttributeSetting("join");
};

mxUtils.extend(JoinActivitySetting, AttributeSetting);


/**
 * 渲染聚合活动属性设置页面
 */
JoinActivitySetting.prototype.renderJoinActSetting = function() {
	var basicAttrRegion = $('#ef_region_basicAttr');
	$('#name', basicAttrRegion)
			.attr('value', this.setting.getAttribute('Name'));
	$('#displayName', basicAttrRegion).attr('value',
			this.setting.getAttribute('DisplayName'));
	$('#description', basicAttrRegion).attr('value',
			this.setting.getAttribute('Description'));
};
/**
 * 保存聚合活动属性设置
 */
JoinActivitySetting.prototype.updateJoinActSetting = function() {
	// 获取活动属性配置
	var basicAttrRegion = $('#ef_region_basicAttr');
	var name = $('#name', basicAttrRegion).attr('value');
	var displayName = $('#displayName', basicAttrRegion).attr('value');
	var description = $('#description', basicAttrRegion).attr('value');

	// 设置基本属性
	var cas = this.setting;
	cas.setAttribute('Name', name);
	cas.setAttribute('DisplayName', displayName);
	cas.setAttribute('Description', description);
	
	this.updateAttributeSetting();
};
